export const setToken = (token) => sessionStorage.setItem('token', token);

export const getToken = () => sessionStorage.getItem('token');

export const removeToken = () => sessionStorage.removeItem('token');

export const serverUrl = 'http://192.168.15.6:3006';

export const dalImg = (url) => {
  if (url) {
    if (url.startsWith('http')) {
      return url;
    } else {
      return serverUrl + url;
    }
  }
  return 'https://pic3.zhimg.com/v2-4e468b747fc3c87336f932786d81459e_r.jpg';
};

// export const uploadActionUrl = serverUrl + '/common/upload';
